projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b2fea
)
powerpc/p2041rdb: add env in NAND support
author
Shaohui Xie
<
[email protected]
>
Tue, 28 Feb 2012 23:28:40 +0000
(23:28 +0000)
committer
Andy Fleming
<
[email protected]
>
Wed, 25 Apr 2012 04:58:31 +0000
(23:58 -0500)
Add env in NAND support when boot from NAND.
Signed-off-by: Shaohui Xie <
[email protected]
>
Signed-off-by: Andy Fleming <
[email protected]
>
include/configs/P2041RDB.h
patch
|
blob
|
history
diff --git
a/include/configs/P2041RDB.h
b/include/configs/P2041RDB.h
index 501726ca4cbe29c076909b353560746bda76c1f1..fe39d4e6e6b4b50888faa42b72cc627c6365bcef 100644
(file)
--- a/
include/configs/P2041RDB.h
+++ b/
include/configs/P2041RDB.h
@@
-96,6
+96,11
@@
#define CONFIG_SYS_MMC_ENV_DEV 0
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_OFFSET (512 * 1097)
+#elif defined(CONFIG_NAND)
+#define CONFIG_SYS_EXTRA_ENV_RELOC
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET (5 * CONFIG_SYS_NAND_BLOCK_SIZE)
#else
#define CONFIG_ENV_IS_IN_FLASH
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE \